html, body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100%;
    overflow: hidden;
}

#app {
    height: 100%;
}

.container {
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.table-container {
    flex: 1;
    overflow: auto;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条样式 */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 固定表头 */
.admin-table thead {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.admin-table th {
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}

.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #dee2e6;
}

/* 调整工具栏样式 */
.toolbar {
    padding: 10px 0;
    margin-bottom: 10px;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

h1 {
    color: #409EFF;
    text-align: center;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.admin-table th {
    background-color: #f5f7fa;
    color: #606266;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-table th:hover {
    background-color: #e6f1fc;
}

.admin-table tr:hover {
    background-color: #f5f7fa;
}

.admin-table .sorted-asc::after {
    content: " ↑";
    color: #409EFF;
}

.admin-table .sorted-desc::after {
    content: " ↓";
    color: #409EFF;
}

.toolbar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    width: 300px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #409EFF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.btn {
    background-color: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn:hover {
    color: #409EFF;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

.btn-primary {
    background-color: #409EFF;
    border-color: #409EFF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}

.btn-danger {
    background-color: #f56c6c;
    border-color: #f56c6c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #f78989;
    border-color: #f78989;
    color: #fff;
}

.btn:disabled {
    color: #c0c4cc;
    cursor: not-allowed;
    background-color: #f5f7fa;
}

.pagination .active {
    color: #fff;
    background-color: #409EFF;
    border-color: #409EFF;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.status-active {
    background-color: #f0f9eb;
    color: #67c23a;
}

.status-inactive {
    background-color: #fef0f0;
    color: #f56c6c;
}

.status-pending {
    background-color: #fdf6ec;
    color: #e6a23c;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 400px;
    max-width: 600px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #303133;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #909399;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #606266;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #409EFF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-button {
    padding: 4px 8px;
    font-size: 12px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.select-control {
    padding: 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.select-control:focus {
    border-color: #409EFF;
    outline: none;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translate(-50%, -20px);
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.notification-success {
    background-color: #67c23a;
}

.notification-error {
    background-color: #f56c6c;
}